package org.jeecg.modules.demo.annualkeywork.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.jeecg.modules.demo.annualkeywork.entity.AnnualKeyWork;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.annualkeywork.entity.AnnualKeyWorkList;
import org.jeecg.modules.demo.annualkeywork.entity.ApprovalAnnualKeyWork;
import org.jeecg.modules.demo.annualkeywork.entity.ReportAnnualKeyWork;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 年度重点工作
 * @Author: jeecg-boot
 * @Date:   2025-08-19
 * @Version: V1.0
 */
@Mapper
public interface AnnualKeyWorkMapper extends BaseMapper<AnnualKeyWork> {
//    查询年度重点工作列表
    List<AnnualKeyWorkList> queryKeyWorkList();
//    查询汇报年度重点工作列表
    List<ReportAnnualKeyWork> SelectKeyWorkList(String orgId);
//    保存汇报年度重点工作，实现汇报功能
    int saveReportAnnualKeyWork(@RequestParam ReportAnnualKeyWork reportAnnualKeyWork);
//    查询年度重点工作的所有数据
    List<AnnualKeyWork> getAllList();
//    查询责任部门的上级部门
    String SelectApprovalKeyWorkListByRespondepartment();
//    查询审批年度重点工作列表
    List<ApprovalAnnualKeyWork> SelectApprovalKeyWorkList();
//    保存审批年度重点工作，实现审批功能
    int saveApprovalKeyWork(@RequestParam ApprovalAnnualKeyWork approvalKeyWork);
}
